#include <iostream>

using namespace std;

int main()
{

  cout << "Please input the numerator:";
  double numerator, denominator;
  cin >> numerator;
  cout << "Please input the denominator:";
  cin >> denominator;

  try
  {
    if(denominator != 0)
    {
      cout << "The quotient of " << numerator << " divieded by " << denominator << " is " << numerator / denominator << endl;
    }
    else
    {
      throw 1;
    }
  }
  catch (int e)
  {
    cout << "The numerator is " << numerator << ", the denominator is " << denominator << ", the denominator could not be zero. e = " << e << endl;
  }

  return 0;
}
